package Exer03_分支;

import java.util.Scanner;

public class _1_3_7_能否同时被3和5整除 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("输入：");
        int num = scanner.nextInt();
        if (num % 3 == 0 && num % 5 == 0){
            System.out.println("输出：能被3和5整除");
        }else{
            System.out.println("输出：不能被3和5整除");
        }
        scanner.close();
    }
}
